package com.demo.mybatis.enumhandle.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(autoResultMap = true)
@Data
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Sex sex;
}
